package com.example.administrator.mydeviceuuid;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    private TextView tv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        DeviceUuidFactory.init(this);

        tv = findViewById(R.id.tv);
        tv.setText(DeviceUuidFactory.getDeviceID());
        Log.d("====ssss", DeviceUuidFactory.getDeviceID());  //a387a268-cb9c-3cfc-8558-d18b3cb7fd85
    }
}
